import 'babel-polyfill'
import Vue from "vue";
import "./plugins/axios";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import 'font-awesome/css/font-awesome.css';
import './plugins/element.js'
import VueParticles from 'vue-particles'
import Share from 'vue-social-share'
import 'vue-social-share/dist/client.css';
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
import VueSession from 'vue-session'
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
import ExTableColumn from "ex-table-column/src/components/ExTableColumn";

Vue.use(Viewer)
Viewer.setDefaults({
    Options: {
        'inline': true,
        'button': true,
        'navbar': true,
        'title': true,
        'toolbar': true,
        'tooltip': true,
        'movable': true,
        'zoomable': true,
        'rotatable': true,
        'scalable': true,
        'transition': true,
        'fullscreen': true,
        'keyboard': true,
        'url': 'data-source'
    }

})
Vue.use(VueSession)
Vue.use(Share);
Vue.use(mavonEditor);
Vue.use(VueParticles);
Vue.use(ExTableColumn);
Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: h => h(App),
}).$mount("#app");

router.beforeEach((to, from, next) => {
    /* 路由发生变化修改页面title */
    if (to.meta.title) {
        document.title = to.meta.title
    }
    next()
})
